﻿package com.artionscript.tools.stamps.florids 
{
	import com.artionscript.tools.FillVO;
	import com.artionscript.tools.LineVO;
	import com.artionscript.tools.stamps.ArcStamp;
	import com.artionscript.tools.Tool;
	import flash.display.Sprite;
	/**
	 * ...
	 * @author Trevor Boyle
	 */
	public class Florid3 extends Tool
	{
		
		private const DEFAULT_WIDTH:Number = 50;
		
		public function Florid3(width:Number=0, height:Number=0, fillVO:FillVO=null, lineVO:LineVO=null, centre:Boolean=false) 
		{
			var container:Sprite = new Sprite();
			
			var s:Sprite = new Sprite;
			setFillAndLineStyle(fillVO,lineVO, s);
			s.graphics.drawPath(Vector.<int>([1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,2]),Vector.<Number>([149.173,-24.395,146.81792422203557,-16.39282410980261,142.121,-11.57,137.13938971057718,-6.4063222583531765,130.684,-6.7540000000000004,126.00926934627373,-6.902028990897666,121.752,-9.544,119.96763133669215,-10.660747734859337,118.663,-12.039000000000001,118.663,-12.011000000000001,118.663,-12.011000000000001,118.663,-12.003027210884362,118.42099999999999,-12.301,117.7790546502143,-13.019202356779678,117.324,-13.735,114.85819644607612,-17.16959237046099,114.821,-19.183,114.18881695456558,-21.492551240483873,116.5,-22.126,118.81076905559785,-22.75901287315828,119.439,-20.444000000000003,119.83725347733191,-18.99737966139117,118.68799999999999,-18.006000000000004,118.38071916228733,-16.97282385000989,118.61662499999998,-15.649750000000004,119.06906622380015,-13.112241146125747,121.52499999999999,-11.264000000000003,122.00186710369508,-11.00522228843851,122.449,-10.794000000000002,126.20040080343502,-8.816997899644718,130.658625,-9.185875000000003,136.18790300689182,-9.643371964780764,139.538,-13.940000000000001,143.6133210455849,-19.308093861114582,144.58062500000003,-25.433875,145.76219523642357,-32.9165702123111,140.942,-37.047,129.49265489692422,-48.10820194188852,113.69900000000001,-40.727,106.93064971412834,-37.53656341557017,103.91700000000002,-31.247999999999998,102.48436372314801,-28.54561447150656,101.74887500000003,-24.700499999999998,101.49507224846039,-23.373626314328455,101.15217187500002,-20.992781249999997,100.69616925335957,-17.82663832604363,100.52500000000002,-16.760999999999996,97.73842386666234,-0.27963673035407055,89.56900000000002,12.729000000000003,84.19298974526195,21.319255880688473,77.00512500000002,27.735750000000003,72.31004415886837,31.926975026413007,67.69700000000002,34.509,67.73800000000001,34.593,67.73927918335453,34.59333164012895,66.84100000000001,34.973000000000006,66.28268098295335,35.26174164268318,66.01100000000001,35.376000000000005,65.986,35.318000000000005,62.60551660364158,36.627576627610964,58.839000000000006,37.248000000000005,50.90307226692525,38.64768594961451,37.787000000000006,37.452000000000005,35.840317976573075,37.28647543841501,31.417000000000005,36.82712500000001,27.14397649284038,36.38338226394374,24.840000000000007,36.194,20.517818412572694,35.922234921720765,18.91400000000001,36.207,16.062004486316763,36.678404217137725,12.769000000000009,38.006,5.834583981658311,40.81828620628335,0.9160000000000084,45.376999999999995,-4.8795154693069005,50.748484234110826,-5.437999999999992,56.615,-5.868659550556122,63.467413217704916,-0.8729999999999913,68.803,4.965726290651611,74.9408531548032,10.748000000000008,75.526,18.68442979513252,76.49997678495698,22.963000000000008,72.966,27.011192910148523,69.75427580033052,27.300000000000008,62.592999999999996,27.683280887063237,56.328857154475315,23.81200000000001,53.888999999999996,21.482312427573248,52.37918082068498,18.009000000000007,52.114,10.7952461640421,52.6595155909493,10.559000000000008,55.628,10.743152405175538,57.2120517074821,9.358000000000008,57.991,7.270231165855065,59.17104325408192,6.094000000000008,57.085,4.917994323692892,54.995732596637744,7.005000000000008,53.821,7.8836523242653005,52.9837431499782,9.839000000000008,52.39,12.318119712050736,51.35833045166679,16.06900000000001,50.854,21.32555050922089,50.33524681548138,24.85500000000001,52.167,30.221404919006336,54.83141691136195,30.23600000000001,62.596000000000004,30.545766828118666,71.19254922329281,25.57900000000001,75.91,20.195605040012165,80.97969589565274,10.328000000000012,80.503,2.7667692043372005,79.87509430476588,-5.171999999999988,73.101,-12.597504593282576,66.19551710174493,-12.59599999999999,56.363,-12.491332993706852,47.545127766118824,-4.85499999999999,39.54,0.8985188110371543,33.52463937400447,9.02,29.582,13.144990691619865,27.611806426101563,16.985,26.707,19.37175649908004,26.13432434484631,22.68,26.067,19.456335735409986,22.673031231114106,15.4225,16.995375,14.72163896161443,16.008907453291506,13.74505859375,14.605330078124998,13.482345423006734,14.2277490056938,12.91229541015625,13.406464599609375,12.370119818617363,12.625339525225275,12.07996875,12.208546875,10.05080409763374,9.293717309720998,8.702,7.478999999999999,4.139110266751619,1.2428796109147537,-0.15625,-1.409375,-5.520505011485259,-4.721639677415255,-11.656,-3.406,-19.321137053781165,-1.7562215344472698,-25.8615,1.5281249999999995,-33.29413161163715,5.260538334892452,-38.564,10.777,-39.81354701062802,11.994352049384801,-41.43309375,13.821203125,-41.97424440262206,14.431621847583974,-42.85977734375,15.453115234374998,-43.993368140719994,16.760752080675797,-44.3215,17.135875,-48.091079560389595,21.445287967155707,-51.123,24.04,-55.97572799625816,28.317101954801746,-63.373999999999995,29.689,-66.88405741011708,32.63816173136884,-69.416,36.554,-73.28687892285757,42.75808982608815,-70.852,48.865,-67.47754588154329,57.023680179735344,-60.432,59.299,-50.98471711530321,62.632294023638856,-47.897000000000006,54.124,-45.55396305527459,47.96425129011102,-52.78900000000001,42.667,-57.546711525670965,39.3170380407746,-61.845000000000006,42.612,-62.53878868150002,43.08466081488646,-63.02700000000001,43.649,-63.92312931428275,45.088810746893486,-63.086000000000006,45.857,-63.05220689655173,45.88065517241379,-63.002,45.927,-62.96,45.95892,-62.96,45.955,-62.969,45.958999999999996,-62.56128059494732,46.368404195982656,-62.713,46.918,-62.97768204953511,47.871580534626496,-63.932,47.61,-64.66369457444786,47.40638363652243,-64.655,46.643,-64.656,46.643,-64.6555,46.638999999999996,-64.655,46.635,-64.653693877551,46.591897959183385,-64.647,46.535,-64.59450000000001,45.82000000000009,-64.055,44.8035,-63.526,43.80678359592214,-63.526,43.93,-63.52410526315791,43.92557894736844,-63.521,43.938,-62.99724845174364,43.048510082452765,-62.062,42.323,-57.72027496206374,38.499762215478,-52.318,41.923,-49.73318075726432,43.49558233648954,-47.54,46.874,-45.12552700806734,50.60545826025957,-46.485,54.619,-49.747612434198196,64.82194647390997,-61.04,61.359,-69.20715322594086,58.94452089038631,-73.417,49.907000000000004,-76.76063922524256,42.506821881925546,-72.269,34.913000000000004,-70.75596537368223,32.39810956420532,-68.905,30.198000000000004,-70.07255555555557,30.198000000000004,-71.042,30.123000000000005,-81.40830570508193,29.80210690092613,-90.243,22.441000000000003,-93.8009789851161,19.542930638901254,-97.367875,15.489875000000003,-99.81585293780397,12.708243367532784,-103.40299999999999,7.998000000000003,-104.51455709354467,6.593618873493271,-106.21478710937498,4.316919921875003,-108.61355889005722,1.1048361759098242,-109.01179687499999,0.5807968750000029,-112.3635521203489,-3.8297604851822826,-114.80987499999999,-6.269874999999997,-121.72427282129934,-13.166725217655173,-128.96099999999998,-11.977999999999996,-138.12852702812515,-11.549100162520874,-142.11499999999998,-4.895999999999996,-144.12447209558255,-1.6498149369059818,-144.63699999999997,2.4520000000000035,-144.9686977467204,5.63088870569409,-143.76899999999998,10.266000000000004,-141.5127935530103,19.259705699034622,-134.75599999999997,21.475,-126.37391603226067,24.095655906308224,-120.87099999999997,19.824,-118.21593059500006,17.84137464365203,-116.81999999999996,14.318000000000001,-116.52929109331441,13.617417724879395,-116.28799999999997,12.685000000000002,-116.20199999999997,12.314000000000002,-116.31599999999997,11.449000000000002,-116.57657613904621,9.699626482245748,-117.07799999999997,7.933000000000002,-119.43195010478499,-1.0280156974029602,-125.25799999999998,0.19400000000000173,-131.89644959598658,0.8284290751613541,-134.34199999999998,7.1320000000000014,-136.1598554969084,14.256389557736608,-130.017,15.515,-123.85823360641459,16.945691059251526,-121.243,13.186,-117.83954562783299,8.386900915487988,-122.902,6.245,-127.26937934748237,3.9973691024491846,-128.467,7.716,-130.10606397737243,11.361539556148376,-127.15200000000002,11.778,-125.48536178586488,11.997903653253939,-124.85600000000001,11.066,-124.63974999999999,10.046624999999933,-125.12525000000001,9.645875,-125.65400000000001,9.209424819773432,-125.65400000000001,9.449000000000002,-125.65,9.444,-126.39385261664138,9.409321556333737,-126.569,8.694,-126.80289019840512,7.733055773994504,-125.842,7.496,-125.14881881308777,7.327563449909178,-124.769,7.937,-124.769,7.937,-123.9016611601311,9.238526383363611,-124.41600000000001,10.895,-124.77534082879824,12.598771171025996,-127.245,12.289,-131.04066798571793,11.904444371655082,-129.25,7.411,-127.97000997854634,2.349680847237831,-122.371,5.17,-120.06629208218412,6.191276711662995,-119.40899999999999,8.884,-118.55937404113666,12.2111260448713,-119.925,14.082,-123.19545751977809,18.856251188504068,-130.547,17.46,-138.55997886625542,15.395590913886501,-136.67,6.328000000000001,-133.96261779452604,-1.5494510006914322,-125.64899999999999,-2.714999999999998,-120.73093907880407,-3.777396655306885,-117.73699999999998,-0.20299999999999807,-115.26092716423459,2.3901507263901176,-113.79699999999998,6.943000000000001,-113.16709609868657,8.91433739286346,-112.81199999999998,10.863000000000001,-112.64199999999998,11.884,-112.60399999999998,12.164,-112.60292832952666,12.068134204931823,-112.65299999999999,12.935,-112.76199999999999,13.496,-113.02422651059791,14.671947457463984,-113.36799999999998,15.600000000000001,-114.99521588411797,20.15553552758212,-118.42899999999997,22.917,-120.89412564966001,24.82949771646161,-123.96999999999997,25.764000000000003,-122.0117901729236,26.64959040342883,-120.13499999999998,27.755000000000003,-111.84900113544505,32.67599475726151,-111.54199999999997,41.639,-111.03148592381365,47.108270873551774,-112.46199999999997,50.952000000000005,-114.23451986452206,56.356447822219316,-119.62799999999997,57.40500000000001,-124.82053769460026,58.37192963115895,-129.05199999999996,55.49100000000001,-132.9789820570886,52.64140943673749,-133.54299999999995,47.438,-134.18684689083068,41.81744124080025,-129.99999999999994,39.813,-126.38552398538518,38.216675352813155,-122.36099999999995,39.794000000000004,-118.4524586257441,41.27377006906722,-119.04399999999995,45.047000000000004,-119.37071873709026,48.08656815596337,-121.66699999999996,49.149,-123.71721933957757,49.83046825467525,-125.06099999999996,48.575,-125.54348962380364,48.14665112606209,-125.93599999999996,47.501000000000005,-126.00349999999995,47.39350000000004,-126.01499999999996,47.371,-126.01699999999995,47.36800000000001,-126.03199999999995,47.343,-126.02799999999995,47.342000000000006,-126.59093237509128,46.196964178219766,-125.62999999999995,45.370000000000005,-124.38069840473668,44.29994602492667,-123.30999999999996,45.550000000000004,-123.03716372643173,45.86878764595868,-122.95399999999997,46.29900000000001,-122.95199999999997,46.29800000000001,-122.95199999999997,49.79126732673269,-120.33299999999997,47.68800000000001,-116.8907396036148,42.42871065537635,-122.58799999999997,40.33700000000001,-126.3684960523598,38.940928516052004,-129.63499999999996,40.51100000000001,-133.21228075251528,42.338693659582084,-132.55099999999996,47.33100000000001,-131.93250666475225,52.045940882553296,-128.35499999999996,54.49600000000001,-124.52703474454219,57.02797193380068,-119.94699999999996,56.00800000000001,-115.72483078720197,55.04966513962688,-114.04099999999997,50.41075000000001,-112.63697003204234,46.542679690113694,-113.37899999999996,41.83000000000001,-113.87046176983876,33.948765305462366,-121.30099999999996,29.613000000000014,-124.72779171343156,27.680448859285683,-128.44699999999995,26.554000000000013,-132.221005799979,26.778695997491912,-136.16099999999994,25.714000000000013,-145.50546172618579,22.996949130573217,-148.58199999999994,11.624000000000013,-150.0962571128111,6.00521537199248,-149.87899999999993,1.9210000000000136,-149.3739881696413,-3.3563736272477405,-146.87499999999994,-7.725999999999987,-141.6833662510465,-17.315846439100433,-129.45099999999994,-18.033999999999985,-123.21188128074762,-18.642837753902548,-118.86399999999993,-16.872999999999983,-114.6879146454965,-15.173781951034647,-110.19199999999994,-10.975999999999983,-107.15578457717639,-8.057915475249866,-103.62437499999994,-3.7461249999999833,-102.55876439719964,-2.4450327457411687,-100.66620312499995,-0.05154687499998323,-98.6631016220096,2.481737101320275,-97.76099999999994,3.591000000000017,-91.10238972144549,12.102533742369053,-85.45774999999995,16.387625000000018,-78.06971411217282,21.99620403361182,-70.77999999999994,21.910000000000018,-62.01748287799471,22.109537838750537,-56.75899999999994,17.369000000000018,-54.63463192537761,15.494360840998473,-51.17099999999994,11.311875000000018,-48.553242757757474,8.150819542394924,-48.295624999999944,7.846015625000018,-46.59875753276396,5.838344042824785,-45.20799999999994,4.375000000000018,-33.193047341168054,-8.717279141633213,-13.574999999999942,-13.366999999999983,-11.348163917837995,-13.888775343684124,-8.911999999999942,-13.984999999999983,-12.649100709219791,-17.702151773049614,-15.975999999999942,-21.856999999999985,-20.3815346394085,-27.58937594699203,-22.795249999999946,-33.62899999999999,-25.8190390448007,-41.1951568652095,-25.463999999999942,-48.685999999999986,-24.818048139864036,-66.147641306417,-9.124999999999943,-76.15699999999998,7.224992568336505,-87.3926202918551,21.76300000000006,-74.83499999999998,27.257970458877345,-70.14126526356615,29.85200000000006,-62.48499999999998,30.15599431633654,-61.5697482949009,30.35400000000006,-60.793999999999976,30.45800000000006,-60.35699999999998,30.4704631578948,-59.85016491228045,30.50700000000006,-59.906999999999975,30.49000000000006,-59.67999999999998,30.405000000000058,-58.81299999999998,30.202905339542994,-57.12986125852911,29.796000000000056,-55.48699999999998,28.903545922668545,-51.930429762322646,27.158000000000058,-49.58699999999998,23.62369312747387,-44.30445096460709,16.803000000000058,-46.62999999999998,11.60158514401808,-47.984501444783355,10.105000000000057,-51.69399999999998,8.670283544327981,-55.42666672701887,9.652000000000058,-58.47699999999998,9.858607558014901,-59.205379187577726,10.126000000000058,-59.624999999999986,10.135000000000058,-59.60899999999999,10.548173258917803,-60.257525115263284,11.277000000000058,-60.018999999999984,12.216692123070825,-59.709985859528636,11.909000000000058,-58.76699999999998,11.698554186473379,-58.12923673305272,11.023000000000058,-58.08999999999998,11.029000000000059,-58.079999999999984,11.029000000000059,-58.29129265911752,10.426375000000059,-57.95362499999998,9.786125000000057,-57.59487499999998,9.59800000000006,-56.432999999999986,9.634219707320563,-54.183565545358206,10.644000000000059,-51.95699999999999,12.198628410226439,-48.66047745204332,17.04000000000006,-47.60599999999999,23.181916855250506,-46.0079716986339,25.969000000000058,-50.44399999999999,27.44288396665334,-52.595417959001566,28.12700000000006,-55.87299999999999,28.44418221630004,-57.407312060666406,28.57400000000006,-58.98899999999999,28.62100000000006,-59.78199999999999,28.62500000000006,-59.90099999999999,28.62300000000006,-59.91199999999999,28.51800000000006,-60.28799999999999,28.318734217972533,-60.9623365206362,27.99500000000006,-61.828999999999986,25.331322928387117,-68.83076307855666,20.176000000000062,-72.90699999999998,6.820915621578938,-83.59179958903965,-7.141999999999939,-73.17199999999998,-20.840109105736964,-63.77062564745885,-20.85,-48.537,-20.9529703915377,-42.09063884386811,-18.107750000000003,-35.583875000000006,-15.787572661660803,-30.277837526991178,-11.662,-25.246,-7.994574926724789,-20.93553631454341,-3.8046250000000015,-17.163375,-0.6121341954867368,-14.289214086283785,2.8069999999999986,-11.797999999999998,4.130369808833233,-11.204059026273653,5.229999999999999,-10.529999999999998,8.867744537316707,-8.379599212566797,12.174125,-5.117624999999998,14.41096787214204,-2.9108239833469725,17.375999999999998,0.783000000000003,18.993995301286198,2.8769707555692725,21.648796874999995,6.468359375000003,24.403997392508963,10.195566666424524,25.531124999999996,11.663125000000004,29.79110352603315,17.209761374783557,32.903999999999996,19.811,39.239482825203545,25.33659672175707,46.992,24.936,52.46300480061672,24.471075142111935,57.56524999999999,22.471374999999995,61.66126580509335,20.86604184421047,61.555,20.714,61.606,20.823999999999998,65.14897331536797,18.977070586801457,68.79724999999999,15.999999999999998,74.28025084431003,11.52575586995279,78.687,5.469999999999999,86.31557292222452,-4.982796398569631,89.75,-19.011000000000003,89.91560935810367,-19.68448828856245,90.57621875000001,-22.740828125,91.14012049679734,-25.349745578665136,91.61075,-27.084625000000003,93.08636812354881,-32.5241894532961,95.351,-36.032000000000004,100.47497746220756,-44.94602052022657,110.454,-48.638000000000005,131.55736342024744,-56.09878504756223,145.316,-41.105000000000004,152.23248486396497,-33.5787204866693,149.173,-24.395,149.173,-24.395]),"nonZero");
			s.graphics.endFill();
			container.addChild(s);
			
			if (width == 0) {
				width = DEFAULT_WIDTH;
			}
			
			if (height == 0) {
				height = (width / container.width) * container.height;
			}
			
			container.width = width;
			container.height = height;
			
			if (centre) {
				container.x = 0 - container.width / 2;
				container.y = 0 - container.height / 2;
			}
			
			this.addChild(container);
		}
		
	}

}